    <style include="cr-shared-style">
      :host {
        display: inline-block;
      }

      cr-camera {
        --cr-camera-image-size: 288px;
      }

      #preview {
        height: 288px;
      }

      img {
        background-size: 100% 100%;
        border-radius: 50%;
        display: block;
        height: 288px;
        width: 288px;
      }

      img:not([data-show-discard]) {
        background-color: rgba(0, 0, 0, 0.08);
        border-radius: 50%;
        bottom: 0;
        height: var(--cr-picture-image-size, 228px);
        left: 0;
        margin: auto;
        padding: 2px;
        position: absolute;
        right: 0;
        top: 0;
        width: var(--cr-picture-image-size, 228px);
      }

      #discard {
        align-items: center;
        background-clip: content-box;
        background-color: var(--google-blue-500);
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
        display: flex;
        height: 32px;
        justify-content: center;
        width: 288px;
      }

      cr-icon-button {
        --cr-icon-button-fill-color: white;
        --cr-icon-button-icon-size: 24px;
        --cr-icon-button-size: 28px;
        margin: 0;
      }
    </style>
    <div id="preview" hidden="[[!showImagePreview_(cameraActive_, imageSrc)]]">
      <img id="image" alt="[[previewAltText]]" src="[[getImgSrc_(imageUrl)]]"
          data-show-discard$="[[showDiscard_(imageType)]]">
      <div id="discard" hidden="[[!showDiscard_(imageType)]]">
        <cr-icon-button class="icon-picture-delete" id="discardImage"
            title="[[discardImageLabel]]" on-click="onTapDiscardImage_">
        </cr-icon-button>
      </div>
    </div>
    <template is="dom-if" if="[[cameraActive_]]">
      <cr-camera id="camera"
          take-photo-label="[[takePhotoLabel]]"
          capture-video-label="[[captureVideoLabel]]"
          switch-mode-to-camera-label="[[switchModeToCameraLabel]]"
          switch-mode-to-video-label="[[switchModeToVideoLabel]]"
          video-mode-enabled="[[cameraVideoModeEnabled]]">
      </cr-camera>
    </template>
